<template>
  <div>
    <el-carousel class="model1" :interval="5000" arrow="always" height="600px;">
      <el-carousel-item v-for="(item,index) in header" :key="index" class="sywz" >
      <img class="imdt" :src="item.url" />
        <p class="medium1" >{{item.name}}</p>
        <p class="medium2" >{{item.con}}</p>
      </el-carousel-item>
    </el-carousel>
    <!-- <div class="model1">
      <p class="sywz">
        <span style="position: relative; top: 85px">玉屏山森林区</span>
      </p>
    </div> -->
     <div class="photo">
      <!-- <img src="../assets/image/gysq.png" /> -->
      <p
        style="
          font-size: 42px;
          font-family: DFLiJinHeiW8-GB, DFLiJinHeiW8-GB-Regular;
          font-weight: 400;
          text-align: center;
          color: #279e70;
          line-height: 120px;
        "
      >
        在线预订
        <span style="position: relative;top: -85px;font-size:25px;">
          ZAIXIANYUDING
        </span>
      </p>
    </div>
    <div class="model2">
      <div class="jdzs">
        <div class="imgStyle"></div>
        <div class="titleStyle">
          <div class="btwz">
            <p>酒店预订</p>
          </div>
          <div class="btwz1"></div>
          <div class="btwz2">
            <span>
              房间宽敞明亮，整个装修风格简洁明快，各种不同类型的房型，依山而建，风景优美，玉池楼、玉屏楼、玉泉楼、杉香居，上林居，沐翠园、百草园，总有一款适合您。
            </span>
          </div>
          <div class="btwz2" style="color: #999999">
            <span> 电话：17803525782 </span>
          </div>
          <div class="btwz2" style="color: #999999">
            <span> 地址：柳江古镇玉屏山景区 </span>
          </div>
          <div style="position: relative; top: 30px; right: 31px">
            <el-button
              style="
                background: #009a7e;
                color: #fff;
                border-radius: 0;
                float: right;
              "
              >查看详情</el-button
            >
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
// import { service } from "@/request";
import { service } from '@/request'
export default {
  data () {
    return {
      header: []
    }
  },
  created () {},
  mounted () {
    this.Carousel()
  },
  methods: {
    // 轮播图
    Carousel () {
      service({
        url: '/go/carousel',
        method: 'post',
        data: {}
      }).then((data) => {
        if (data.code == 200) {
          this.header = data.data
        }
      })
    }

  }
}
</script>
<style scoped>

.btwz {
  font-size: 31px;
  font-family: Source Han Sans SC, Source Han Sans SC-Regular;
  font-weight: 400;
  text-align: left;
  color: #000000;
  line-height: 28px;
  margin-left: 25px;
}
.btwz2 {
  font-size: 14px;
  font-family: Source Han Sans SC, Source Han Sans SC-Regular;
  font-weight: 400;
  text-align: left;
  color: #000000;
  line-height: 28px;
  margin-left: 25px;
  width: 548px;
}
.jdzs {
  width: 70%;
  height: 300px;
}
.imgStyle {
  width: 30%;
  height: 100%;
  display: inline-block;
  float: left;
  background: url("../assets/image/jd1.png") no-repeat;
  background-size: 100% 100%;
}
.titleStyle {
  width: 69.5%;
  height: 100%;
  display: inline-block;
  background: #fff;
}
.sywz {
  font-size: 49px;
  font-family: PingFang SC, PingFang SC-Semibold;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  margin-top: 0;
}
.model1 {
  width: 99.9%;
  height: 600px;
  background: url("../assets/image/dpm1.png") no-repeat;
  background-size: 100% 100%;
}
.model2 {
  width: 99.9%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  background: url('../assets/image/dbj2.png') no-repeat;
  background-size: 100% 100%;
}
.bzjd {
  width: 70%;
  height: 60%;
  border: 1px solid black;
  display: flex;
  justify-content: space-between;
}
.box1 {
  width: 30%;
  height: 100%;
  display: inline-block;
  border: 1px solid black;
}
.model3 {
  width: 99.9%;
  height: 600px;
  border: 1px solid black;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}
.photo {
  width: 333px;
  height: 240px;
  text-align: center;
  background: url("../assets/image/gysq.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  left: 41%;
  top: 64%;
  /* display: block; */
}
/deep/ .el-carousel__container {
    position: relative;
    height: 600px;
}
 .imdt{
  width: 100%;
  height: 100%;

 }
.medium2{
position: absolute;
    left: 5rem;
    bottom: 10rem;
    font-size: 50px;
    color: white;
    /* text-decoration-line: underline; */
    font-weight: 900;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 48px;
    line-height: 100%;
    display: flex;
    align-items: center;
    flex: none;
    order: 1;
    align-self: stretch;
}
.medium1{
    position: absolute;
    left: 5rem;
    bottom: 15rem;
    font-size: 50px;
    color: white;
    /* text-decoration-line: underline; */
    font-weight: 900;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 48px;
    line-height: 100%;
    display: flex;
    align-items: center;
    flex: none;
    order: 1;
    align-self: stretch;
}
</style>
